package com.ws.entity;

/**
 * @author 王硕
 * @version jdk21
 * @className User
 * @description
 * @date 2024/12/2 11:27
 */
public class User {
    private String name;
    private Integer age;
    public String name1;
    public Integer age1;
    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public User() {
    }

    public void info() {
        System.out.println(this.name + "的年龄是" + this.age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
